package com.myh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myh.common.utils.PageUtils;
import com.myh.gulimall.product.entity.AttrEntity;
import com.myh.gulimall.product.vo.AttrInfoVo;
import com.myh.gulimall.product.vo.AttrVo;

import java.util.Map;

/**
 * 商品属性
 *
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-01 11:42:39
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId, String attrType);

    void saveAttr(AttrVo attr);

    AttrInfoVo getAttrInfoById(Long attrId);

    void updateAttrById(AttrInfoVo attr);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);

    String queryAttrNameByAttrId(Long attrId);

    Integer getSearchTypeByAttrId(Long attrId);
}

